package com.bang.dao;

import com.bang.pojo.Books;
import com.bang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    User queryByNameAndPwd(@Param("uname") String uname, @Param("upassword") String upassword);

    int addBook(Books books);

    int deleteBookById(int id);

    int updateBook(Books books);

    Books queryBookById(int id);

    List<Books> queryAllBook();

    List<Books> queryBookByName(String name);
}
